﻿namespace = dvg_imperial_authority

dvg_imperial_authority.1 = {
	type = country_event
	placement = ROOT

	event_image = {
		video = "gfx/event_pictures/europenorthamerica_capitalists_meeting.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/europenorthamerica/capitalists_meeting"

	icon = "gfx/interface/icons/event_icons/event_default.dds"

	title = dvg_imperial_authority.1.t
	desc = dvg_imperial_authority.1.d
	flavor = dvg_imperial_authority.1.f

	duration = 1

	immediate = {
		save_scope_as = root_scope

		every_country = {
			limit = {
				OR = {
					country_has_primary_culture = cu:north_german
					country_has_primary_culture = cu:south_german
					country_has_primary_culture = cu:rheinish
				}
				has_diplomatic_pact = {
					who = scope:target_country
					type = customs_union
				}
			}

			change_relations = {
				country = scope:initiator
				value = 100
			}
		}
	}

	option = {
		name = dvg_imperial_authority.1.a
		default_option = yes

		every_country = {
			limit = {
				OR = {
					country_has_primary_culture = cu:north_german
					country_has_primary_culture = cu:south_german
					country_has_primary_culture = cu:rheinish
				}
				has_diplomatic_pact = {
					who = scope:target_country
					type = customs_union
				}
			}

			remove_diplomatic_pact = {
				country = scope:target_country
				type = customs_union
			}

			change_relations = {
				country = scope:target_country
				value = -50
			}

			c:BOH = {
				create_diplomatic_pact = {
					country = PREV
					type = customs_union
				}
			}
		}
	}
}
